package com.hnbtr.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hnbtr.dao.RecordDao;
import com.hnbtr.pojo.Record;
import com.hnbtr.service.RecordService;

@Service("recordService")
public class RecordServiceImpl implements RecordService {

	@Autowired
	private RecordDao recordDao;
	
	@Override
	@Transactional(readOnly=false)
	public void add(Record record) {
		recordDao.addRecord(record);
	}

	@Override
	@Transactional(readOnly=false)
	public void update(Record record) {
		recordDao.updateRecord(record);
	}

}
